#!/bin/bash
cd src/sunxacml/pCloud/crypto
g++ -fPIC -c -I /home/ttadinh/Downloads/jdk1.6.0_27/include -I /home/ttadinh/Downloads/jdk1.6.0_27/include/linux -I /usr/include/glib-2.0 -I /home/ttadinh/Downloads/ABETest/pbc-0.5.12/include -I /home/ttadinh/pCloudSvn/ABEAccessControl/src/libkpabe -I /home/ttadinh/pCloudSvn/ABEAccessControl/src/libcelia kpabe_owner.cc kpabe_user.cc kpabe_cloud.cc

g++ -o libproxyKPAbe.so -shared kpabe_owner.o kpabe_user.o kpabe_cloud.o /home/ttadinh/pCloudSvn/ABEAccessControl/src/libcelia/*.o /home/ttadinh/pCloudSvn/ABEAccessControl/src/libkpabe/common.o /home/ttadinh/pCloudSvn/ABEAccessControl/src/libkpabe/policy_lang.o -lpbc -lglib-2.0 -lgmp -lcrypto
